<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <title>用户操作日志</title>
  <!-- Bootstrap 5 CSS -->
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css">
  
  <style>
    :root {
      --primary: #4F46E5;
      --secondary: #6B7280;
      --light: #F9FAFB;
      --dark: #1F2937;
      --white: #FFFFFF;
      --border: #E5E7EB;
      --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
      --success: #10B981;
      --warning: #F59E0B;
      --danger: #EF4444;
      --info: #3B82F6;
      
      /* 不同风格主题色 */
      --style1: #3B82F6; /* 科技蓝 */
      --style2: #EC4899; /* 活力粉 */
      --style3: #10B981; /* 生态绿 */
      --style4: #F59E0B; /* 温暖橙 */
      --style5: #8B5CF6; /* 梦幻紫 */
      --style6: #111827; /* 商务黑 */
    }
    
    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      background-color: #f5f5f5;
      color: var(--dark);
      min-height: 100vh;
      padding: 0;
      margin: 0;
      transition: background-color 0.3s ease;
    }
    
    .container {
      max-width: 420px;
      margin: 0 auto;
      background-color: var(--white);
      min-height: 100vh;
      box-shadow: var(--shadow);
      overflow: hidden;
      position: relative;
      transition: background-color 0.3s ease;
    }
    
    /* 主页面容器 */
    .log-page {
      display: none;
      min-height: 100vh;
      flex-direction: column;
    }
    
    .log-page.active {
      display: flex;
      animation: fadeIn 0.3s ease forwards;
    }
    
    /* 顶部导航栏 */
    .page-header {
      padding: 18px 20px;
      position: relative;
      text-align: center;
      border-bottom: 1px solid var(--border);
      background-color: var(--white);
      transition: all 0.3s ease;
      z-index: 10;
    }
    
    .page-title {
      font-size: 18px;
      font-weight: 600;
      margin: 0;
    }
    
    .back-btn {
      position: absolute;
      left: 20px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: var(--dark);
      font-size: 20px;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    
    .back-btn:active {
      transform: translateY(-50%) scale(0.9);
    }
    
    .header-actions {
      position: absolute;
      right: 20px;
      top: 50%;
      transform: translateY(-50%);
      display: flex;
      gap: 15px;
    }
    
    .header-btn {
      background: none;
      border: none;
      color: var(--dark);
      font-size: 20px;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    
    .header-btn:active {
      transform: scale(0.9);
    }
    
    /* 筛选栏 */
    .filter-bar {
      padding: 12px 20px;
      background-color: var(--light);
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    
    .filter-text {
      font-size: 14px;
      color: var(--secondary);
    }
    
    .filter-options {
      display: flex;
      gap: 10px;
    }
    
    .filter-btn {
      padding: 4px 10px;
      background-color: var(--white);
      border: 1px solid var(--border);
      border-radius: 12px;
      font-size: 13px;
      color: var(--dark);
      cursor: pointer;
      transition: all 0.2s ease;
    }
    
    .filter-btn.active {
      background-color: var(--primary);
      color: white;
      border-color: var(--primary);
    }
    
    /* 内容区域 */
    .content {
      flex-grow: 1;
      overflow-y: auto;
    }
    
    /* 日志列表 */
    .log-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    
    .log-item {
      padding: 15px 20px;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: flex-start;
      transition: background-color 0.2s ease;
    }
    
    .log-item:hover {
      background-color: var(--light);
    }
    
    .log-icon {
      width: 36px;
      height: 36px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      margin-right: 15px;
      flex-shrink: 0;
    }
    
    .log-info {
      flex-grow: 1;
    }
    
    .log-title {
      font-size: 15px;
      font-weight: 500;
      margin-bottom: 4px;
    }
    
    .log-details {
      font-size: 13px;
      color: var(--secondary);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    .log-time {
      white-space: nowrap;
    }
    
    /* 日志类型样式 */
    .log-login .log-icon {
      background-color: rgba(59, 130, 246, 0.1);
      color: var(--info);
    }
    
    .log-post .log-icon {
      background-color: rgba(16, 185, 129, 0.1);
      color: var(--success);
    }
    
    .log-comment .log-icon {
      background-color: rgba(245, 158, 11, 0.1);
      color: var(--warning);
    }
    
    .log-like .log-icon {
      background-color: rgba(236, 72, 153, 0.1);
      color: var(--danger);
    }
    
    .log-settings .log-icon {
      background-color: rgba(139, 92, 246, 0.1);
      color: var(--primary);
    }
    
    /* 加载更多 */
    .load-more {
      padding: 15px 20px;
      text-align: center;
    }
    
    .load-more-btn {
      background: none;
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 8px 16px;
      font-size: 14px;
      color: var(--primary);
      cursor: pointer;
      transition: all 0.2s ease;
    }
    
    .load-more-btn:hover {
      background-color: var(--light);
    }
    
    .load-more-btn:active {
      transform: scale(0.98);
    }
    
    /* 样式切换器 */
    .style-switcher {
      position: fixed;
      top: 20px;
      right: 20px;
      z-index: 1010;
      background-color: white;
      border-radius: 8px;
      box-shadow: var(--shadow);
      overflow: hidden;
      width: 180px;
      transition: all 0.3s ease;
      transform: translateX(0);
      opacity: 1;
    }
    
    .style-switcher.hidden {
      transform: translateX(200px);
      opacity: 0;
      pointer-events: none;
    }
    
    .switcher-toggle {
      position: fixed;
      top: 20px;
      right: 20px;
      z-index: 1020;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background-color: var(--primary);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: var(--shadow);
      border: none;
      font-size: 18px;
      cursor: pointer;
      transition: all 0.3s ease;
    }
    
    .switcher-header {
      padding: 10px 16px;
      font-size: 14px;
      font-weight: 600;
      border-bottom: 1px solid #eee;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    .switcher-close {
      background: none;
      border: none;
      color: var(--secondary);
      font-size: 16px;
      cursor: pointer;
    }
    
    .switcher-option {
      padding: 12px 16px;
      font-size: 14px;
      cursor: pointer;
      transition: background-color 0.2s;
      display: flex;
      align-items: center;
    }
    
    .switcher-color {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      margin-right: 10px;
    }
    
    .switcher-option:hover {
      background-color: #f9f9f9;
    }
    
    .switcher-option.active {
      background-color: var(--primary);
      color: white;
    }
    
    /* 风格1：科技蓝 */
    .style-1 {
      --primary: var(--style1);
    }
    
    .style-1 .log-item:nth-child(odd) {
      background-color: rgba(59, 130, 246, 0.02);
    }
    
    /* 风格2：活力粉 */
    .style-2 {
      --primary: var(--style2);
    }
    
    .style-2 .page-header {
      background-color: var(--primary);
      color: white;
      border-bottom: none;
    }
    
    .style-2 .back-btn,
    .style-2 .header-btn {
      color: white;
    }
    
    .style-2 .log-icon {
      border-radius: 50%;
    }
    
    .style-2 .filter-btn {
      border-radius: 20px;
    }
    
    /* 风格3：生态绿 */
    .style-3 {
      --primary: var(--style3);
    }
    
    .style-3 .container {
      background-color: #F8FAFC;
    }
    
    .style-3 .log-item {
      border-left: 3px solid transparent;
    }
    
    .style-3 .log-item:hover {
      border-left-color: var(--primary);
    }
    
    .style-3 .filter-bar {
      background-color: transparent;
      border-bottom: none;
    }
    
    /* 风格4：温暖橙 */
    .style-4 {
      --primary: var(--style4);
    }
    
    .style-4 .page-title {
      color: var(--primary);
      font-weight: 700;
    }
    
    .style-4 .filter-btn.active {
      box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    }
    
    .style-4 .log-details {
      color: var(--primary);
      opacity: 0.8;
    }
    
    /* 风格5：梦幻紫 */
    .style-5 {
      --primary: var(--style5);
    }
    
    .style-5 .container {
      background-color: #FCFAFF;
    }
    
    .style-5 .log-item {
      border-radius: 12px;
      margin: 8px;
      border-bottom: none;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }
    
    .style-5 .filter-bar {
      background-color: transparent;
      padding: 15px 20px 5px;
    }
    
    /* 风格6：商务黑 */
    .style-6 {
      --primary: #60A5FA;
      --secondary: #9CA3AF;
      --light: #1F2937;
      --dark: #F9FAFB;
      --white: #111827;
      --border: #374151;
      --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
    
    .style-6 body {
      background-color: #030712;
    }
    
    .style-6 .container {
      background-color: var(--white);
    }
    
    .style-6 .page-header {
      background-color: var(--light);
      border-bottom-color: var(--border);
    }
    
    .style-6 .back-btn,
    .style-6 .header-btn,
    .style-6 .page-title {
      color: var(--dark);
    }
    
    .style-6 .filter-bar {
      background-color: var(--light);
      border-bottom-color: var(--border);
    }
    
    .style-6 .filter-text {
      color: var(--secondary);
    }
    
    .style-6 .filter-btn {
      background-color: var(--white);
      border-color: var(--border);
      color: var(--dark);
    }
    
    .style-6 .log-item {
      border-bottom-color: var(--border);
    }
    
    .style-6 .log-item:hover {
      background-color: var(--light);
    }
    
    .style-6 .load-more-btn {
      border-color: var(--border);
      color: var(--primary);
    }
    
    .style-6 .style-switcher {
      background-color: var(--light);
    }
    
    .style-6 .switcher-header {
      border-bottom-color: var(--border);
      color: var(--dark);
    }
    
    .style-6 .switcher-option {
      color: var(--dark);
    }
    
    .style-6 .switcher-option:hover {
      background-color: rgba(255, 255, 255, 0.1);
    }
    
    /* 动画效果 */
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }
    
    /* 响应式加载动画 */
    @keyframes spin {
      to { transform: rotate(360deg); }
    }
    
    .loading {
      animation: spin 1s linear infinite;
    }
    
    /* 响应式调整 */
    @media (max-width: 360px) {
      .filter-options {
        gap: 5px;
      }
      
      .filter-btn {
        padding: 3px 8px;
        font-size: 12px;
      }
      
      .log-title {
        font-size: 14px;
      }
      
      .log-details {
        font-size: 12px;
      }
    }
  </style>
</head>
<body class="style-1">
  <!-- 样式切换器 -->
  <button class="switcher-toggle">
    <i class="fa fa-paint-brush"></i>
  </button>
  
  <div class="style-switcher hidden">
    <div class="switcher-header">
      选择页面样式
      <button class="switcher-close"><i class="fa fa-times"></i></button>
    </div>
    <div class="switcher-option active" data-style="1">
      <span class="switcher-color" style="background-color: var(--style1);"></span>
      科技蓝
    </div>
    <div class="switcher-option" data-style="2">
      <span class="switcher-color" style="background-color: var(--style2);"></span>
      活力粉
    </div>
    <div class="switcher-option" data-style="3">
      <span class="switcher-color" style="background-color: var(--style3);"></span>
      生态绿
    </div>
    <div class="switcher-option" data-style="4">
      <span class="switcher-color" style="background-color: var(--style4);"></span>
      温暖橙
    </div>
    <div class="switcher-option" data-style="5">
      <span class="switcher-color" style="background-color: var(--style5);"></span>
      梦幻紫
    </div>
    <div class="switcher-option" data-style="6">
      <span class="switcher-color" style="background-color: var(--style6);"></span>
      商务黑
    </div>
  </div>
  
  <div class="container">
    <!-- 风格1：科技蓝 -->
    <div class="log-page active" id="page1">
      <div class="page-header">
        <button class="back-btn" id="back1"><i class="fa fa-chevron-left"></i></button>
        <h1 class="page-title">操作日志</h1>
        <div class="header-actions">
          <button class="header-btn" id="calendar1"><i class="fa fa-calendar"></i></button>
        </div>
      </div>
      
      <div class="filter-bar">
        <span class="filter-text">筛选          <i class="fa fa-clock-o"></i> 最近30天
        </span>
        <div class="filter-options">
          <button class="filter-btn active" data-filter="all">全部</button>
          <button class="filter-btn" data-filter="login">登录</button>
          <button class="filter-btn" data-filter="content">内容</button>
        </div>
      </div>
      
      <div class="content">
        <ul class="log-list" id="logList1">
          <li class="log-item log-login">
            <div class="log-icon">
              <i class="fa fa-sign-in"></i>
            </div>
            <div class="log-info">
              <div class="log-title">登录账号</div>
              <div class="log-details">
                <span>设备：iPhone 13</span>
                <span class="log-time">今天 08:45</span>
              </div>
            </div>
          </li>
          <li class="log-item log-post">
            <div class="log-icon">
              <i class="fa fa-pencil"></i>
            </div>
            <div class="log-info">
              <div class="log-title">发布了新动态</div>
              <div class="log-details">
                <span>内容：周末愉快的旅行...</span>
                <span class="log-time">昨天 15:30</span>
              </div>
            </div>
          </li>
          <li class="log-item log-comment">
            <div class="log-icon">
              <i class="fa fa-comment"></i>
            </div>
            <div class="log-info">
              <div class="log-title">评论了好友动态</div>
              <div class="log-details">
                <span>回复：张三的动态</span>
                <span class="log-time">昨天 10:15</span>
              </div>
            </div>
          </li>
          <li class="log-item log-like">
            <div class="log-icon">
              <i class="fa fa-heart"></i>
            </div>
            <div class="log-info">
              <div class="log-title">点赞了内容</div>
              <div class="log-details">
                <span>内容：李四分享的图片</span>
                <span class="log-time">06-12 21:40</span>
              </div>
            </div>
          </li>
          <li class="log-item log-settings">
            <div class="log-icon">
              <i class="fa fa-cog"></i>
            </div>
            <div class="log-info">
              <div class="log-title">修改了个人资料</div>
              <div class="log-details">
                <span>更新：个人简介</span>
                <span class="log-time">06-10 16:25</span>
              </div>
            </div>
          </li>
        </ul>
        
        <div class="load-more">
          <button class="load-more-btn" id="loadMore1">
            加载更多
          </button>
        </div>
      </div>
    </div>
    
    <!-- 风格2：活力粉 -->
    <div class="log-page" id="page2">
      <div class="page-header">
        <button class="back-btn" id="back2"><i class="fa fa-chevron-left"></i></button>
        <h1 class="page-title">操作日志</h1>
        <div class="header-actions">
          <button class="header-btn" id="calendar2"><i class="fa fa-calendar"></i></button>
        </div>
      </div>
      
      <div class="filter-bar">
        <span class="filter-text">
          <i class="fa fa-clock-o"></i> 最近30天
        </span>
        <div class="filter-options">
          <button class="filter-btn active" data-filter="all">全部</button>
          <button class="filter-btn" data-filter="login">登录</button>
          <button class="filter-btn" data-filter="content">内容</button>
        </div>
      </div>
      
      <div class="content">
        <ul class="log-list" id="logList2">
          <li class="log-item log-login">
            <div class="log-icon">
              <i class="fa fa-sign-in"></i>
            </div>
            <div class="log-info">
              <div class="log-title">登录账号</div>
              <div class="log-details">
                <span>设备：iPhone 13</span>
                <span class="log-time">今天 08:45</span>
              </div>
            </div>
          </li>
          <li class="log-item log-post">
            <div class="log-icon">
              <i class="fa fa-pencil"></i>
            </div>
            <div class="log-info">
              <div class="log-title">发布了新动态</div>
              <div class="log-details">
                <span>内容：周末愉快的旅行...</span>
                <span class="log-time">昨天 15:30</span>
              </div>
            </div>
          </li>
          <li class="log-item log-comment">
            <div class="log-icon">
              <i class="fa fa-comment"></i>
            </div>
            <div class="log-info">
              <div class="log-title">评论了好友动态</div>
              <div class="log-details">
                <span>回复：张三的动态</span>
                <span class="log-time">昨天 10:15</span>
              </div>
            </div>
          </li>
          <li class="log-item log-like">
            <div class="log-icon">
              <i class="fa fa-heart"></i>
            </div>
            <div class="log-info">
              <div class="log-title">点赞了内容</div>
              <div class="log-details">
                <span>内容：李四分享的图片</span>
                <span class="log-time">06-12 21:40</span>
              </div>
            </div>
          </li>
          <li class="log-item log-settings">
            <div class="log-icon">
              <i class="fa fa-cog"></i>
            </div>
            <div class="log-info">
              <div class="log-title">修改了个人资料</div>
              <div class="log-details">
                <span>更新：个人简介</span>
                <span class="log-time">06-10 16:25</span>
              </div>
            </div>
          </li>
        </ul>
        
        <div class="load-more">
          <button class="load-more-btn" id="loadMore2">
            加载更多
          </button>
        </div>
      </div>
    </div>
    
    <!-- 风格3：生态绿 -->
    <div class="log-page" id="page3">
      <div class="page-header">
        <button class="back-btn" id="back3"><i class="fa fa-chevron-left"></i></button>
        <h1 class="page-title">操作日志</h1>
        <div class="header-actions">
          <button class="header-btn" id="calendar3"><i class="fa fa-calendar"></i></button>
        </div>
      </div>
      
      <div class="filter-bar">
        <span class="filter-text">
          <i class="fa fa-clock-o"></i> 最近30天
        </span>
        <div class="filter-options">
          <button class="filter-btn active" data-filter="all">全部</button>
          <button class="filter-btn" data-filter="login">登录</button>
          <button class="filter-btn" data-filter="content">内容</button>
        </div>
      </div>
      
      <div class="content">
        <ul class="log-list" id="logList3">
          <li class="log-item log-login">
            <div class="log-icon">
              <i class="fa fa-sign-in"></i>
            </div>
            <div class="log-info">
              <div class="log-title">登录账号</div>
              <div class="log-details">
                <span>设备：iPhone 13</span>
                <span class="log-time">今天 08:45</span>
              </div>
            </div>
          </li>
          <li class="log-item log-post">
            <div class="log-icon">
              <i class="fa fa-pencil"></i>
            </div>
            <div class="log-info">
              <div class="log-title">发布了新动态</div>
              <div class="log-details">
                <span>内容：周末愉快的旅行...</span>
                <span class="log-time">昨天 15:30</span>
              </div>
            </div>
          </li>
          <li class="log-item log-comment">
            <div class="log-icon">
              <i class="fa fa-comment"></i>
            </div>
            <div class="log-info">
              <div class="log-title">评论了好友动态</div>
              <div class="log-details">
                <span>回复：张三的动态</span>
                <span class="log-time">昨天 10:15</span>
              </div>
            </div>
          </li>
          <li class="log-item log-like">
            <div class="log-icon">
              <i class="fa fa-heart"></i>
            </div>
            <div class="log-info">
              <div class="log-title">点赞赞了内容</div>
              <div class="log-details">
                <span>内容：李四分享的图片</span>
                <span class="log-time">06-12 21:40</span>
              </div>
            </div>
          </li>
          <li class="log-item log-settings">
            <div class="log-icon">
              <i class="fa fa-cog"></i>
            </div>
            <div class="log-info">
              <div class="log-title">修改了个人资料</div>
              <div class="log-details">
                <span>更新：个人简介</span>
                <span class="log-time">06-10 16:25</span>
              </div>
            </div>
          </li>
        </ul>
        
        <div class="load-more">
          <button class="load-more-btn" id="loadMore3">
            加载更多
          </button>
        </div>
      </div>
    </div>
    
    <!-- 风格4：温暖橙 -->
    <div class="log-page" id="page4">
      <div class="page-header">
        <button class="back-btn" id="back4"><i class="fa fa-chevron-left"></i></button>
        <h1 class="page-title">操作日志</h1>
        <div class="header-actions">
          <button class="header-btn" id="calendar4"><i class="fa fa-calendar"></i></button>
        </div>
      </div>
      
      <div class="filter-bar">
        <span class="filter-text">
          <i class="fa fa-clock-o"></i> 最近30天
        </span>
        <div class="filter-options">
          <button class="filter-btn active" data-filter="all">全部</button>
          <button class="filter-btn" data-filter="login">登录</button>
          <button class="filter-btn" data-filter="content">内容</button>
        </div>
      </div>
      
      <div class="content">
        <ul class="log-list" id="logList4">
          <li class="log-item log-login">
            <div class="log-icon">
              <i class="fa fa-sign-in"></i>
            </div>
            <div class="log-info">
              <div class="log-title">登录账号</div>
              <div class="log-details">
                <span>设备：iPhone 13</span>
                <span class="log-time">今天 08:45</span>
              </div>
            </div>
          </li>
          <li class="log-item log-post">
            <div class="log-icon">
              <i class="fa fa-pencil"></i>
            </div>
            <div class="log-info">
              <div class="log-title">发布了新动态</div>
              <div class="log-details">
                <span>内容：周末愉快的旅行...</span>
                <span class="log-time">昨天 15:30</span>
              </div>
            </div>
          </li>
          <li class="log-item log-comment">
            <div class="log-icon">
              <i class="fa fa-comment"></i>
            </div>
            <div class="log-info">
              <div class="log-title">评论了好友动态</div>
              <div class="log-details">
                <span>回复：张三的动态</span>
                <span class="log-time">昨天 10:15</span>
              </div>
            </div>
          </li>
          <li class="log-item log-like">
            <div class="log-icon">
              <i class="fa fa-heart"></i>
            </div>
            <div class="log-info">
              <div class="log-title">点赞了内容</div>
              <div class="log-details">
                <span>内容：李四分享的图片</span>
                <span class="log-time">06-12 21:40</span>
              </div>
            </div>
          </li>
          <li class="log-item log-settings">
            <div class="log-icon">
              <i class="fa fa-cog"></i>
            </div>
            <div class="log-info">
              <div class="log-title">修改了个人资料</div>
              <div class="log-details">
                <span>更新：个人简介</span>
                <span class="log-time">06-10 16:25</span>
              </div>
            </div>
          </li>
        </ul>
        
        <div class="load-more">
          <button class="load-more-btn" id="loadMore4">
            加载更多
          </button>
        </div>
      </div>
    </div>
    
    <!-- 风格5：梦幻紫 -->
    <div class="log-page" id="page5">
      <div class="page-header">
        <button class="back-btn" id="back5"><i class="fa fa-chevron-left"></i></button>
        <h1 class="page-title">操作日志</h1>
        <div class="header-actions">
          <button class="header-btn" id="calendar5"><i class="fa fa-calendar"></i></button>
        </div>
      </div>
      
      <div class="filter-bar">
        <span class="filter-text">
          <i class="fa fa-clock-o"></i> 最近30天
        </span>
        <div class="filter-options">
          <button class="filter-btn active" data-filter="all">全部</button>
          <button class="filter-btn" data-filter="login">登录</button>
          <button class="filter-btn" data-filter="content">内容</button>
        </div>
      </div>
      
      <div class="content">
        <ul class="log-list" id="logList5">
          <li class="log-item log-login">
            <div class="log-icon">
              <i class="fa fa-sign-in"></i>
            </div>
            <div class="log-info">
              <div class="log-title">登录账号</div>
              <div class="log-details">
                <span>设备：iPhone 13</span>
                <span class="log-time">今天 08:45</span>
              </div>
            </div>
          </li>
          <li class="log-item log-post">
            <div class="log-icon">
              <i class="fa fa-pencil"></i>
            </div>
            <div class="log-info">
              <div class="log-title">发布了新动态</div>
              <div class="log-details">
                <span>内容：周末愉快的旅行...</span>
                <span class="log-time">昨天 15:30</span>
              </div>
            </div>
          </li>
          <li class="log-item log-comment">
            <div class="log-icon">
              <i class="fa fa-comment"></i>
            </div>
            <div class="log-info">
              <div class="log-title">评论了好友动态</div>
              <div class="log-details">
                <span>回复：张三的动态</span>
                <span class="log-time">昨天 10:15</span>
              </div>
            </div>
          </li>
          <li class="log-item log-like">
            <div class="log-icon">
              <i class="fa fa-heart"></i>
            </div>
            <div class="log-info">
              <div class="log-title">点赞了内容</div>
              <div class="log-details">
                <span>内容：李四分享的图片</span>
                <span class="log-time">06-12 21:40</span>
              </div>
            </div>
          </li>
          <li class="log-item log-settings">
            <div class="log-icon">
              <i class="fa fa-cog"></i>
            </div>
            <div class="log-info">
              <div class="log-title">修改了个人资料</div>
              <div class="log-details">
                <span>更新：个人简介</span>
                <span class="log-time">06-10 16:25</span>
              </div>
            </div>
          </li>
        </ul>
        
        <div class="load-more">
          <button class="load-more-btn" id="loadMore5">
            加载更多
          </button>
        </div>
      </div>
    </div>
    
    <!-- 风格6：商务黑 -->
    <div class="log-page" id="page6">
      <div class="page-header">
        <button class="back-btn" id="back6"><i class="fa fa-chevron-left"></i></button>
        <h1 class="page-title">操作日志</h1>
        <div class="header-actions">
          <button class="header-btn" id="calendar6"><i class="fa fa-calendar"></i></button>
        </div>
      </div>
      
      <div class="filter-bar">
        <span class="filter-text">
          <i class="fa fa-clock-o"></i> 最近30天
        </span>
        <div class="filter-options">
          <button class="filter-btn active" data-filter="all">全部</button>
          <button class="filter-btn" data-filter="login">登录</button>
          <button class="filter-btn" data-filter="content">内容</button>
        </div>
      </div>
      
      <div class="content">
        <ul class="log-list" id="logList6">
          <li class="log-item log-login">
            <div class="log-icon">
              <i class="fa fa-sign-in"></i>
            </div>
            <div class="log-info">
              <div class="log-title">登录账号</div>
              <div class="log-details">
                <span>设备：iPhone 13</span>
                <span class="log-time">今天 08:45</span>
              </div>
            </div>
          </li>
          <li class="log-item log-post">
            <div class="log-icon">
              <i class="fa fa-pencil"></i>
            </div>
            <div class="log-info">
              <div class="log-title">发布了新动态</div>
              <div class="log-details">
                <span>内容：周末愉快的旅行...</span>
                <span class="log-time">昨天 15:30</span>
              </div>
            </div>
          </li>
          <li class="log-item log-comment">
            <div class="log-icon">
              <i class="fa fa-comment"></i>
            </div>
            <div class="log-info">
              <div class="log-title">评论了好友动态</div>
              <div class="log-details">
                <span>回复：张三的动态</span>
                <span class="log-time">昨天 10:15</span>
              </div>
            </div>
          </li>
          <li class="log-item log-like">
            <div class="log-icon">
              <i class="fa fa-heart"></i>
            </div>
            <div class="log-info">
              <div class="log-title">点赞了内容</div>
              <div class="log-details">
                <span>内容：李四分享的图片</span>
                <span class="log-time">06-12 21:40</span>
              </div>
            </div>
          </li>
          <li class="log-item log-settings">
            <div class="log-icon">
              <i class="fa fa-cog"></i>
            </div>
            <div class="log-info">
              <div class="log-title">修改了个人资料</div>
              <div class="log-details">
                <span>更新：个人简介</span>
                <span class="log-time">06-10 16:25</span>
              </div>
            </div>
          </li>
        </ul>
        
        <div class="load-more">
          <button class="load-more-btn" id="loadMore6">
            加载更多
          </button>
        </div>
      </div>
    </div>
  </div>
  
  <!-- Bootstrap JS -->
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
  
  <script>
    // 当前状态
    let currentStyle = 1;
    
    // DOM元素
    const switcherToggle = document.querySelector('.switcher-toggle');
    const switcher = document.querySelector('.style-switcher');
    const switcherClose = document.querySelector('.switcher-close');
    const switcherOptions = document.querySelectorAll('.switcher-option');
    const logPages = {
      1: document.getElementById('page1'),
      2: document.getElementById('page2'),
      3: document.getElementById('page3'),
      4: document.getElementById('page4'),
      5: document.getElementById('page5'),
      6: document.getElementById('page6')
    };
    const bodyElement = document.body;
    
    // 日志数据
    const logData = [
      { type: 'login', title: '登录账号', details: '设备：Android 手机', time: '06-08 09:20' },
      { type: 'post', title: '发布了新动态', details: '内容：分享了一段音乐', time: '06-07 20:15' },
      { type: 'comment', title: '评论了好友动态', details: '回复：王五的动态', time: '06-05 14:30' },
      { type: 'like', title: '点赞了内容', details: '内容：社区精选文章', time: '06-03 11:45' },
      { type: 'settings', title: '修改了密码', details: '安全设置更新', time: '06-01 16:50' }
    ];
    
    // 初始化
    function init() {
      // 切换器控制
      switcherToggle.addEventListener('click', toggleSwitcher);
      switcherClose.addEventListener('click', toggleSwitcher);
      
      // 切换样式
      switcherOptions.forEach(option => {
        option.addEventListener('click', function() {
          const style = parseInt(this.getAttribute('data-style'));
          switchStyle(style);
          toggleSwitcher();
        });
      });
      
      // 初始化所有页面的交互
      initPageInteractions();
    }
    
    // 初始化页面交互
    function initPageInteractions() {
      // 为每个页面初始化交互
      for (let i = 1; i <= 6; i++) {
        // 返回按钮
        const backBtn = document.getElementById(`back${i}`);
        backBtn.addEventListener('click', function() {
          alert('返回上一页');
        });
        
        // 日历按钮
        const calendarBtn = document.getElementById(`calendar${i}`);
        calendarBtn.addEventListener('click', function() {
          alert('选择日期范围');
        });
        
        // 筛选按钮
        const filterBtns = document.querySelectorAll(`#page${i} .filter-btn`);
        filterBtns.forEach(btn => {
          btn.addEventListener('click', function() {
            // 移除其他按钮的active类
            filterBtns.forEach(b => b.classList.remove('active'));
            // 给当前按钮添加active类
            this.classList.add('active');
            
            const filter = this.getAttribute('data-filter');
            alert(`筛选：${filter === 'all' ? '全部日志' : filter === 'login' ? '登录记录' : '内容操作'}`);
          });
        });
        
        // 加载更多按钮
        const loadMoreBtn = document.getElementById(`loadMore${i}`);
        const logList = document.getElementById(`logList${i}`);
        
        loadMoreBtn.addEventListener('click', function() {
          // 显示加载中状态
          this.innerHTML = '<i class="fa fa-spinner loading"></i> 加载中...';
          this.disabled = true;
          
          // 模拟加载延迟
          setTimeout(() => {
            // 添加新日志
            logData.forEach(log => {
              const li = document.createElement('li');
              li.className = `log-item log-${log.type}`;
              
              let icon = '';
              switch(log.type) {
                case 'login': icon = 'fa-sign-in'; break;
                case 'post': icon = 'fa-pencil'; break;
                case 'comment': icon = 'fa-comment'; break;
                case 'like': icon = 'fa-heart'; break;
                case 'settings': icon = 'fa-cog'; break;
              }
              
              li.innerHTML = `
                <div class="log-icon">
                  <i class="fa ${icon}"></i>
                </div>
                <div class="log-info">
                  <div class="log-title">${log.title}</div>
                  <div class="log-details">
                    <span>${log.details}</span>
                    <span class="log-time">${log.time}</span>
                  </div>
                </div>
              `;
              
              logList.appendChild(li);
            });
            
            // 恢复按钮状态
            this.innerHTML = '加载更多';
            this.disabled = false;
            
            // 模拟没有更多数据的情况
            if (logList.children.length > 15) {
              this.innerHTML = '没有更多数据';
              this.disabled = true;
              this.style.color = 'var(--secondary)';
              this.style.borderColor = 'var(--border)';
            }
          }, 1000);
        });
        
        // 日志项点击事件
        const logItems = document.querySelectorAll(`#page${i} .log-item`);
        logItems.forEach(item => {
          item.addEventListener('click', function() {
            const title = this.querySelector('.log-title').textContent;
            const time = this.querySelector('.log-time').textContent;
            alert(`${title}\n时间：${time}`);
          });
        });
      }
    }
    
    // 切换样式选择器显示/隐藏
    function toggleSwitcher() {
      switcher.classList.toggle('hidden');
    }
    
    // 关闭所有页面
    function closeAllPages() {
      Object.values(logPages).forEach(page => {
        page.classList.remove('active');
      });
    }
    
    // 切换样式
    function switchStyle(style) {
      // 移除所有样式类
      bodyElement.classList.remove('style-1', 'style-2', 'style-3', 'style-4', 'style-5', 'style-6');
      
      // 添加当前样式类
      bodyElement.classList.add(`style-${style}`);
      
      // 更新当前样式
      currentStyle = style;
      
      // 更新切换器选中状态
      switcherOptions.forEach(option => {
        option.classList.remove('active');
        if (parseInt(option.getAttribute('data-style')) === style) {
          option.classList.add('active');
        }
      });
      
      // 显示对应页面
      closeAllPages();
      logPages[style].classList.add('active');
    }
    
    // 键盘导航
    document.addEventListener('keydown', function(e) {
      if (e.key === 'ArrowLeft') {
        let prev = currentStyle - 1;
        if (prev < 1) prev = 6;
        switchStyle(prev);
      } else if (e.key === 'ArrowRight') {
        let next = currentStyle + 1;
        if (next > 6) next = 1;
        switchStyle(next);
      }
    });
    
    // 启动
    init();
  </script>
</body>
</html>
